package cn.face.sdk;

public class FaceRecog
{
  static FaceRecog recog = null;

  public FaceRecog() {
    FaceCommon.loadLibrarys();
  }

  public static FaceRecog getInstance()
  {
    if (recog == null) {
      recog = new FaceRecog();
    }
    return recog;
  }

  public static native int cwCreateRecogHandle(String paramString1, String paramString2, int paramInt);

  public static native int cwReleaseRecogHandle(int paramInt);

  public static native int cwGetFeatureLength(int paramInt);

  public static native int cwGetFiledFeature(int paramInt1, byte[] paramArrayOfByte1, int paramInt2, int paramInt3, int paramInt4, byte[] paramArrayOfByte2);

  public static native int cwGetProbeFeature(int paramInt1, byte[] paramArrayOfByte1, int paramInt2, int paramInt3, int paramInt4, byte[] paramArrayOfByte2);

  public static native int cwConvertFiledFeatureToProbeFeature(int paramInt1, byte[] paramArrayOfByte1, int paramInt2, int paramInt3, byte[] paramArrayOfByte2);

  public static native int cwComputeMatchScore(int paramInt1, byte[] paramArrayOfByte1, int paramInt2, int paramInt3, byte[] paramArrayOfByte2, int paramInt4, int paramInt5, float[] paramArrayOfFloat);
}